package com.bangdream.michelia.tool.glide;

import android.content.Context;
import android.widget.ImageView;

import com.bangdream.michelia.R;
import com.bangdream.michelia.entity.RecommendBean;
import com.bangdream.michelia.utils.ImageLoadUtils;
import com.bumptech.glide.Glide;
import com.youth.banner.loader.ImageLoader;

/**
 * @date on 2018/8/2 21:48
 * @email 909732184@qq.com
 */
public class BannerGlideImageLoader extends ImageLoader {
    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        RecommendBean bean = (RecommendBean) path;
        //ImageLoadUtils.ImageLoad(context,bean.getCover(),imageView, R.mipmap.icon_temp_curriculum2);
        Glide.with(context).load(bean.getCover()).error(R.mipmap.img_load_failed).into(imageView);
    }
}
